package com.strongdigit.aop;

import com.strongdigit.aop.aspectj.biz.MoocBiz;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

    public static void main(String[] args) {


        ClassPathXmlApplicationContext context1 = new ClassPathXmlApplicationContext("classpath:spring-aspectj.xml");
        MoocBiz biz = (MoocBiz) context1.getBean("moocBiz");
        //biz.say();
        //biz.afterReturning();
//        try {
//            biz.afterThrowing();
//        } catch (Exception e) {
//            //e.printStackTrace();
//        }
        //biz.after();
        //biz.around(2,3,4);
        //biz.say("我是参数arg");
        biz.sayAnnotation("annotation 参数");
    }
}
